<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>RegularExpressionGroupPosition</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">RegularExpressionGroupPosition()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#3A3966"><b>RegularExpressionGroupPosition</b></font>(#RegularExpression, Group)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Returns the position (within the current matching string) of the specified group 
after a call to <a href="nextregularexpressionmatch.html">NextRegularExpressionMatch()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#RegularExpression</i></td>
<td width="90%"> 
要使用的正则表达式. <a href="examineregularexpression.html">ExamineRegularExpression()</a> and <a href="nextregularexpressionmatch.html">NextRegularExpressionMatch()</a> must have been called on this regular expression. 

</td></tr>
<tr><td><i>Group</i></td>
<td> 
The index of the group. 第一组被分组为序列 1. 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Returns the character position of the group within the matching string 
(not within the orginal input string!). 
The first character of the match has position 1. 

 

</blockquote><p><b>备注</b></p><blockquote>

在正则表达式中的分组由包围在表达式左右的括号 "(" 和 ")" 定义. 这些分组的排序由它们在正则表达式中出现的顺序决定. 第一组被分组为序列 1. The <a href="countregularexpressiongroups.html">CountRegularExpressionGroups()</a> function can be used to find out the number of groups in a regular expression. <br><br>As an alternative, the <a href="regularexpressionnamedgroupposition.html">RegularExpressionNamedGroupPosition()</a> function can be used. 

</blockquote><p><b>参阅</b></p><blockquote>

<a href="examineregularexpression.html">ExamineRegularExpression()</a>, <a href="nextregularexpressionmatch.html">NextRegularExpressionMatch()</a>, 
<a href="regularexpressiongroup.html">RegularExpressionGroup()</a>, <a href="regularexpressiongrouplength.html">RegularExpressionGroupLength()</a>, 
<a href="regularexpressionnamedgroupposition.html">RegularExpressionNamedGroupPosition()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=regularexpressiongrouplength.html>RegularExpressionGroupLength()</a> - <a href="index.html">RegularExpression Index</a> - <a href="regularexpressionmatchlength.html">RegularExpressionMatchLength()</a> -&gt;<br><br>

</body></html>